import request from '@/utils/request';

// 查询反馈列表详情
export function getFkxxByUserId(query) {
  return request({
    url: '/yjgl/getFkxxByUserId',
    method: 'get',
    params: query
  })
}

// 查询历史反馈列表详情
export function getHistoryFkxxByUserId(query) {
  return request({
    url: '/yjgl/getHistoryFkxxByUserId',
    method: 'get',
    params: query
  })
}
// 查询反馈列表
export function getFkxxByQyZh(query) {
  return request({
    url: '/yjgl/getFkxxByQyZh',
    method: 'get',
    params: query
  })
}
// 查询反馈列表详情
export function getFkxxInfo(query) {
  return request({
    url: '/yjgl/getFkxxInfo',
    method: 'get',
    params: query
  })
}
export function getFkIdByRwbAndUserId(query) {
  return request({
    url: '/yjgl/getFkIdByRwbAndUserId',
    method: 'get',
    params: query
  })
}
export function submitFk(data) {
  return request({
    url: '/yjgl/submitFk',
    method: 'post',
    data: data
  })
}
export function submitAppZjxdFk(data) {
  return request({
    url: '/yjgl/submitAppZjxdFk',
    method: 'post',
    data: data
  })
}
export function getLoginUserInfoByAppToken(query) {
  return request({
    url: '/yjgl/getLoginUserInfoByAppToken',
    method: 'get',
    params: query
  })
}

export function loginByToken(query) {
  return request({
    url: '/loginByToken',
    method: 'get',
    params: query
  })
}

export function tranMessageByUser(data) {
  return request({
    url: '/yjgl/tranMessageByUser',
    method: 'post',
    data: data
  })
}

export function updateIsTranBySid(query) {
  return request({
    url: '/yjgl/updateIsTranBySid',
    method: 'get',
    params: query
  })
}

export function getFkFj(query) {
  return request({
    url: '/yjgl/getFkFj',
    method: 'get',
    params: query
  })
}
export function updateCysjByfkId(query) {
  return request({
    url: '/yjgl/updateCysjByfkId',
    method: 'get',
    params: query
  })
}

export function queryUserByUsername(query) {
  return request({
    url: '/yjgl/queryUserByUsername',
    method: 'get',
    params: query
  })
}


// 逐级下达 查询列表分页
export function getAppZjxdRwPage(query) {
  return request({
    url: '/yjgl/getAppZjxdRwPage',
    method: 'get',
    params: query
  })
}

// 逐级下达 查看任务详情
export function getAppZjxdRwbInfo(query) {
  return request({
    url: '/yjgl/getAppZjxdRwbInfo',
    method: 'get',
    params: query
  })
}
// 逐级下达 查看任务详情
export function getAppUserListByZjxdId(query) {
  return request({
    url: '/yjgl/getAppUserListByZjxdId',
    method: 'get',
    params: query
  })
}

// 逐级下达 获取CityLevel
export function getAppCityLevel(query) {
  return request({
    url: '/yjgl/getAppCityLevel',
    method: 'get',
    params: query
  })
}
// 逐级下达 添加下达任务
export function addAppZjxdwj(data) {
  return request({
    url: '/yjgl/addAppZjxdwj',
    method: 'post',
    data: data
  })
}
// 逐级下达 转发下达任务
export function tranAppXdrw(data) {
  return request({
    url: '/yjgl/tranAppXdrw',
    method: 'post',
    data: data
  })
}

export function tranAppXdrwToUser(data) {
  return request({
    url: '/yjgl/tranAppXdrwToUser',
    method: 'post',
    data: data
  })
}

// 逐级下达 获取CityLevel
export function getDeptByUserId(query) {
  return request({
    url: '/yjgl/getDeptByUserId',
    method: 'get',
    params: query
  })
}

export function getMyToDo(query) {
  return request({
    url: '/yjgl/getMyToDo',
    method: 'get',
    params: query
  })
}
